Skip to content

Conversation

@reidt1
Copy link

@reidt1 reidt1 commented Feb 12, 2026

wio-tracker-l1: improve battery voltage reading accuracy

- Add 100us settling delay after enabling voltage divider
- Average 8 ADC samples to reduce noise
- Disable voltage divider after reading to save power
- Move ADC configuration to begin() for consistency
- Move getBattMilliVolts implementation to .cpp file

wio-tracker-l1: add power management support

- Add boot voltage protection (won't boot below 3.3V)
- Add LPCOMP wake configuration for voltage recovery
- Implement initiateShutdown() with LPCOMP wake on low voltage
- Enable NRF52_POWER_MANAGEMENT build flag

Device will enter protective shutdown on low battery and wake
automatically when voltage recovers to ~3.7V or USB is connected.

- Add 100us settling delay after enabling voltage divider
- Average 8 ADC samples to reduce noise
- Disable voltage divider after reading to save power (~2uA)
- Move ADC configuration to begin() for consistency
- Move getBattMilliVolts implementation to .cpp file

Signed-off-by: Reid Tonking <Reid.Tonking@gmail.com>
- Add boot voltage protection (won't boot below 3.3V)
- Add LPCOMP wake configuration for voltage recovery
- Implement initiateShutdown() with LPCOMP wake on low voltage
- Enable NRF52_POWER_MANAGEMENT build flag

Device will enter protective shutdown on low battery and wake
automatically when voltage recovers to ~3.7V or USB is connected.

Signed-off-by: Reid Tonking <Reid.Tonking@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant